package com.river.boot.biz.converter;

import org.mapstruct.Mapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.river.boot.biz.model.entity.ProductCategory;
import com.river.boot.biz.model.form.ProductCategoryForm;

/**
 * 菜品分类对象转换器
 *
 * @author JiangCheng Xiang
 * @since 2025-04-24 17:12
 */
@Mapper(componentModel = "spring")
public interface ProductCategoryConverter{

    ProductCategoryForm toForm(ProductCategory entity);

    ProductCategory toEntity(ProductCategoryForm formData);
}